<div class="notes">
    <div class="appendnote">
        <textarea class="writetext" placeholder="填写新的笔记" bind-input="{{'$Cache_new_note_text'}}"></textarea>
        <div class="choosetype">
            选择分类：
            <select name="chosebox">
                {{#each $Cache_Note_get_types}}
                <option bind-value="{{id}}">{{name}}</option>
                {{/each}}
            </select>
        </div>
        <div class="toolbar">
            <div class="item" id="createnote" event-click="{{'$Event.create_new_note'}}">
                <div class="icon-edit"></div>
                创建
            </div>
            <div class="item" onclick="javascript:document.getElementById('getfile').click()">
                <div class="icon-xiangji"></div>
                发图
            </div>
            <!-- <div class="item">
                <div class="icon-fatie"></div>
                链接
            </div> -->
        </div>
        <div class="imgset">
            <img id="upimg" src="" />
        </div>
        <input type="file" onchange="upfile(this)" id="getfile" style="display:none" />
    </div>
    <div class="notebox">
        {{#each $Cache_all_notes}}
        <div class="item">
            <div class="initem">
                <div class="il">{{createtime}}</div>
                <div class="ir">{{typename}}</div>
            </div>
            {{#if src}}
            <div class="initem">
                <img bind-src="{{src}}">
            </div>
            {{/if}}
            <div class="initem">{{text}}</div>
        </div>
        {{/each}}
    </div>
    <div class="icon-fenlei {{$Cache_istype&&'focus'}}" event-click="{{'$Event.shoe_type_box'}}"></div>
</div>
<div class="typebox {{$Cache_istype&&'focus'}}">
    <div class="add-type">
        <p>添加分类</p>
        <input type="text" bind-input="{{'$Cache_Note_type_new'}}" />
        <button class="icon-add" event-click="{{'$Event.add_new_note_type'}}"></button>
    </div>
    <div class="typelist">
        <p>分类列表</p>
        <div class="item" event-click="{{'$Event.get_all_notes'}}" event-click-new="{{'$Top.$Event.shoe_type_box'}}">全部</div>
        {{#each $Cache_Note_get_types}}
        <div class="item" data="{{id}}" event-click="{{'$Top.$Event.get_type_note'}}" event-click-new="{{'$Top.$Event.shoe_type_box'}}">{{name}}({{num}})</div>
        {{/each}}
    </div>
</div>
<div class="typeblock {{$Cache_istype&&'focus'}}" event-click="{{'$Event.shoe_type_box'}}"></div>
